package com.hsy.swu.roomdb

import androidx.room.Database
import androidx.room.RoomDatabase
import com.hsy.swu.home.course.CourseModel
import com.hsy.swu.home.exam.ExamModel
import com.hsy.swu.home.grade.GradeModel
import com.hsy.swu.home.textbook.TextbookModel

@Database(
    entities = [
        CourseModel::class,
        GradeModel::class,
        TextbookModel::class,
        ExamModel::class
    ],
    version = 1,
    exportSchema = false
)
abstract class AppDatabase : RoomDatabase() {
    abstract fun courseDao(): CourseDao

    abstract fun gradeDao(): GradeDao

    abstract fun textbookDao(): TextbookDao

    abstract fun examDao(): ExamDao
}